import {State, Repository, Action, Getter, Mutation} from "modules/store-class";
import Base from "./Base";
import {getList} from "services/home";

@Repository
export default class Home extends Base {
  @State({default: "home", set: true})
  public bottomState: string;
  @Action
  public async getList(state: any) {
    const data = await getList({LastPkId: 0, PageSize: 10});
    state.commit("setBottomState", data);
  }
}
